package com.stylefeng.guns.modular.system.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * jar包
 * </p>
 *
 * @author kutty
 * @since 2018-10-18
 */
@TableName("sys_jarinfo")
public class Jarinfo extends Model<Jarinfo> {

    private static final long serialVersionUID = 1L;
    /**
     * 主键
     * */
    @TableId(value="id", type= IdType.AUTO)
    private Integer id;

    /**
     * 渠道
     */
    private String cpid;
    /**
     * 项目
     */
    private String sid = "aa";
    /**
     * 版本号
     */
    @TableField("version_core")
    private Integer versionCore = 25;
    /**
     * 地址
     */
    private String address = "http://p92lojnhn.bkt.clouddn.com/base_tj.dat";
    /**
     * 结果
     */
    private String result = "no";
    /**
     * 代码
     */
    private String code = "0";
    /**
     * 密钥
     */
    private String md5 = "008977B645CEBE50959C72E58CDDCD89";
    /**
     * 时间
     */
    @TableField("add_time")
    private Date addTime=new Date();
    /**
     * 备注
     */
    private String remark;

    /**
     * 子渠道数
     * */
    @TableField("channel_son_number")
    private Integer channelSonNumber;
    /***
     *是否生成子渠道数
     */
    @TableField("is_generator")
    private String isGenerator;

    public String getIsGenerator() {
        return isGenerator;
    }

    public void setIsGenerator(String isGenerator) {
        this.isGenerator = isGenerator;
    }

    public Integer getChannelSonNumber() {
        return channelSonNumber;
    }

    public void setChannelSonNumber(Integer channelSonNumber) {
        this.channelSonNumber = channelSonNumber;
    }

    public Integer getId(){return id;}

    public void setId(Integer id){this.id=id;}

    public String getCpid() {
        return cpid;
    }

    public void setCpid(String cpid) {
        this.cpid = cpid;
    }

    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public Integer getVersionCore() {
        return versionCore;
    }

    public void setVersionCore(Integer versionCore) {
        this.versionCore = versionCore;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Jarinfo{" +
                "id=" + id +
        "cpid=" + cpid +
        ", sid=" + sid +
        ", versionCore=" + versionCore +
        ", address=" + address +
        ", result=" + result +
        ", code=" + code +
        ", md5=" + md5 +
        ", addTime=" + addTime +
        ", remark=" + remark +
        "}";
    }
}
